package cn.fj.basic.service;

import cn.fj.basic.query.BaseQuery;
import cn.fj.basic.util.PageList;
import cn.fj.org.domain.Department;
import cn.fj.org.domain.Employee;
import cn.fj.org.query.DepartmentQuery;

import java.util.List;

public interface IBaseService<T> {
    //查询全部
    List<T> findAll();
    //删除
    void  delete(Long id);

    //查询单条
    T findById(Long id);

    /* //高级查询
     Integer count(DepartmentQuery departmentQuery);*/
    //分页:总条数和每页数据
    PageList<T> queryData(BaseQuery basequery);
    //增加
    void add(T t);

    //修改
    void update(T t);

    //批量删除
    void allDelete(List<Long> ids);

}
